home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Eagles Nest BBS 8
/
Eagles_Nest_Mac_Collection_Disc_8.TOAST
/
Developer Tools⁄Additions
/
IntermediatC
/
Read Me C Intro 2
Wrap
Text File
|
1990-11-15
|
4KB
|
111 lines
THINK C 4.0 format.
Learn C Samples are sets of files that are designed to aid learning the C programming
language. Included are homework and test questions and solutions for a C programming
class. In some cases, 2 solutions are provided. My solutions are always present,
and sometimes the professor's program is also included (especially since his probably
has more comments). Concepts that are demonstrated include: multiple file programs,
global variables used in different files, programming for speed, structures,
<math.h>, passing arrays to procedures, pointers, circular queue, <string.h> and
string manipulation, array of strings, structure pointers, linked list, dynamic memory
allocation, simulation of a stack, and much more.
All programs were developed by John A. Schlack (except those files with the prefix
Teacher's, which were developed by Prof. Maginnis of Drexel University). Feel free
to distribute these programs to anyone you wish. You are free to use the ideas and
code in your own programs. You may not, however, charge anybody money or any other
goods or service for these programs or their contents. They are intended to be free.
If there are problems with the professor's source code, don't blame me. I only typed
in what was there and ran it to make sure there were no compiling bugs. If his
logic is wrong, then inform me, and I'll make a note of it.
If you want more examples on this level (which I would need to develop, and therefore
charge a fee of about $10) or more or less advanced programs (which I might simply
release or charge $10, depending on the amount of effort going into the program
creation), please contact me using E-mail on America Online (John40), or write to the
following address:
John A. Schlack
824 Rhoads Avenue
Jenkintown, Pa. 19046
I don't especially like the format of the files, but I will follow the professor's
format. The folder's contain the projects and needed C files. Just compile the code
(with Bring Up To Date) and run it. If you are a beginner, I would suggest downloading
the first set of files and starting with #1. Below are a list of the programs and the
concepts that they are supposed to demonstrate.
Ships:
multiple file programs
global variables used in the multiple files
Frequency:
{ This program was really for Nondeterministic Systems class, but can be programmed
using the knowledge that you should have at this point. This program is also meant
to help you write very fast, optimized code. }
review of previous concepts
help write optimized code
Ships 2:
structures
<math.h>
Queue:
pointers
circular queue
<string.h>
manipulating strings
arrays of strings
Exponential Sim:
{ Again, this is for Nondeterministic Systems class. Try to write the program using
optimized code. Access the math coprocessor, if you have one. Using the coprocessor
and 68020 code took a Mac IIfx about 40 seconds to run this. I've heard horror
stories of hours on SEs. }
fast coding techniques
Linked List:
pointers to structures
circular linked list
dynamic memory allocation and deallocation
Exam 2:
simulating a stack with a linked list
review
linked lists
dynamic memory allocation
I have a library of C functions available on line called JS General Library (or
something to that effect). This file contains many useful procedures for use with
THINK C. It can be included as easily as the MacTraps or ANSI libraries. Many of
the operations are advanced, but the library does have useful features such as
dynamic memory allocation, sorting, complex number arithmetic, error alerts,
dialog utilities, linear algebra, and many other features.
Another library should be appearing soon (JS Math Library 1 ?) which will contain
advanced math routines such as bessel functions, dot products, cross products,
factorial, Beta and Gamma functions, Elliptic functions, phasors (to compliment
complex numbers in the General Library), and many others.
Also, feel free to upload the files to other on-line services. Just make sure that
all the files that you originally received are present.